<?php
/**
 * Created by PhpStorm.
 * User: changyifan
 * Date: 2018/3/30
 * Time: 下午12:10
 */

namespace Home\Dao;
use Think\Model\BaseDao;

class TeachingmethodDao extends BaseDao{
    protected $_map = array(
        'teame_name'        => 'tme_name',
        'cou_boss'          => 'cou_id',
        'lan_boss'          => 'lan_name',
        'edit_tme_id'       => 'tme_id',
        'delete_tme_id'     => 'tme_id'
    );
    protected $_validate = array(
        array('cou_id','0','请选择所属课程',0,'notequal'),
        array('tme_name','require','方案名称不能为空'),
    );
    protected $_auto = array(
        array('tea_id','getCurreentTeacherId',3,'callback'),
        array('tme_updatedate','getTime',3,'function'),
        array('lan_name','checkoutLanName',3,'function'),
    );


    public function getCurreentTeacherId()
    {
        return parent::getCurreentTeacherId(); // TODO: Change the autogenerated stub
    }
}